package router

import (
	"github.com/gin-gonic/gin"

	"2106a-zg5/demo/order/order_api/controller"
)

func OrderRouter(user *gin.RouterGroup) {
	//创建订单
	user.POST("/create", controller.CreateOrder)
	//查询订单
	user.GET("/query", controller.QueryOrder)
	//同步回调
	user.GET("/return", controller.ReturnURL)
	//异步会掉
	user.POST("/notify", controller.NotifyURL)
}
